From: Adel Gadllah Date: Wed, 26 Feb 2014 17:09:45 +0000 (+0100) Subject: messageTray: Make sure that the source actor is square X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2702 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b4ee86955d2b4bc240edd1c2b90e5d96f3516cb7;p=gnome-shell.git messageTray: Make sure that the source actor is square Commit b7e1539699ef removed the size to support hidpi but that caused the actor to no longer be square. Fix that by going back to setting a size but apply the scale factor before doing so. --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 1e5429717..6cdc64cc7 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1162,8 +1162,10 @@ const SourceActor = new Lang.Class({ })); this._actorDestroyed = false; + let scale_factor = St.ThemeContext.get_for_stage(global.stage).scale_factor; this._iconBin = new St.Bin({ x_fill: true, - y_fill: true }); + height: size * scale_factor, + width: size * scale_factor }); this.actor.add_actor(this._iconBin);